<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改ros操作')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-step-edit" th:object="${rosStep}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">操作名称：</label>
                    <div class="col-sm-8">
                        <input name="name" th:field="*{name}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">工具：</label>
                    <div class="col-sm-8">
                        <input name="tool" th:field="*{tool}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">产品：</label>
                    <div class="col-sm-8">
                        <input name="product" th:field="*{product}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">track：</label>
                    <div class="col-sm-8">
                        <input name="track" th:field="*{track}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">time：</label>
                    <div class="col-sm-8">
                        <input name="time" th:field="*{time}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">numbers：</label>
                    <div class="col-sm-8">
                        <input name="numbers" th:field="*{numbers}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">step：</label>
                    <div class="col-sm-8">
                        <input name="step" th:field="*{step}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">state：</label>
                    <div class="col-sm-8">
                        <input name="state" th:field="*{state}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">img_res：</label>
                    <div class="col-sm-8">
                        <input name="imgRes" th:field="*{imgRes}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">执行操作时应当显示的产品图片：</label>
                    <div class="col-sm-8">
                        <input name="imgUrl" th:field="*{imgUrl}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">BasicMakeup 底妆 EyebrowMakeup 眉毛 EyeMakeup 眼妆 FacialContouring修容 FacialPolish润色：</label>
                    <div class="col-sm-8">
                        <input name="flowMode" th:field="*{flowMode}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">新版本2.5 新增， 为1代表需要去播放语音：</label>
                    <div class="col-sm-8">
                        <input name="isStart" th:field="*{isStart}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">是否为开始要执行的操作：</label>
                    <div class="col-sm-8">
                        <input name="isBegin" th:field="*{isBegin}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">是否为结束时需要执行的操作：</label>
                    <div class="col-sm-8">
                        <input name="isEnd" th:field="*{isEnd}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">新版本2.5新增  当需要播语音时 使用tts播放这个文本内容：</label>
                    <div class="col-sm-8">
                        <input name="voiceStr" th:field="*{voiceStr}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">2023/12/13 新增 语音是否要与机械臂操作同步播出  纳米晶片操作流程使用  12/13下午修改为所有机械臂操作都同步：</label>
                    <div class="col-sm-8">
                        <input name="isVoiceSync" th:field="*{isVoiceSync}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">需要延迟多少秒后再执行操作  护肤喷枪流程使用：</label>
                    <div class="col-sm-8">
                        <input name="delayTime" th:field="*{delayTime}" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/step";
        $("#form-step-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-step-edit').serialize());
            }
        }
    </script>
</body>
</html>